﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Menus.Middlewares
{
    public class CsMiddleware
    {
        private readonly RequestDelegate _next;
        public CsMiddleware(RequestDelegate next) 
        {
            _next = next;
        }
        //支持依赖注入
        public async Task InvokeAsync(HttpContext context) 
        {
            await _next(context);
        }

    }
}
